package jungPackage;

import java.util.LinkedList;

import mapPackage.typeRoute.STypeRoute;

public class JUNGRoute {

	protected String		nom;
	protected STypeRoute	type;
	protected LinkedList<JUNGTroncon> sesTroncons;
	
	public JUNGRoute() {
		sesTroncons = new LinkedList<JUNGTroncon>();
	}
	
	public JUNGRoute(String nom, STypeRoute type) {
		this.nom = nom;
		this.type = type;
		sesTroncons = new LinkedList<JUNGTroncon>();
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public STypeRoute getType() {
		return type;
	}

	public void setType(STypeRoute type) {
		this.type = type;
	}
	
	public void addTroncon(JUNGTroncon t) {
		this.sesTroncons.add(t);
	}
	
	public boolean removeTroncon(JUNGTroncon t) {
		return this.sesTroncons.remove(t);
	}
	
}
